package com.ruoyi.qsng.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品类型对象 k_commodity_type
 *
 * @author kanglou
 * @date 2023-06-07
 */
@ApiModel("商品类型对象 k_commodity_type")
public class KCommodityType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型名称 */
    @Excel(name = "类型名称")
    @ApiModelProperty("类型名称")
    private String name;

    /** 上级分类 */
    @Excel(name = "上级分类")
    @ApiModelProperty("上级分类")
    private String parentId;

    /** 分类图片 */
    @Excel(name = "分类图片")
    @ApiModelProperty("分类图片")
    private String image;

    /** 主键 */
    private String id;

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getParentId()
    {
        return parentId;
    }
    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("parentId", getParentId())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("image", getImage())
            .toString();
    }
}
